package com.java.yz.day02;

import java.util.Scanner;

/*
    输入两个数，求最大值
 */
public class ScannerTest2 {
    public static void main(String[] args) {
        System.out.println("请输入两个数：");
        Scanner sc=new Scanner(System.in);
        int num1=sc.nextInt();
        int num2=sc.nextInt();
        int max = (num1>num2)?num1:num2;
        System.out.println("最大值为："+max);
    }
}
